package com.qqtech.qquan.user.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.qquan.user.model.UserDraw;
import com.qqtech.qquan.user.model.UserDrawQuery;
import com.qqtech.qquan.user.model.UserDrawVo;

public interface UserDrawDao extends BaseDao<UserDraw> {

	/**
	 * 后台查询 -分页
	 * 
	 * @param query
	 * @param pageable
	 * @return
	 */
	public Page<UserDrawVo> queryPageListAdmin(UserDrawQuery query, Pageable pageable);

	/**
	 * 后台查询记录数
	 * 
	 * @param query
	 * @return
	 */
	public int queryCountAdmin(UserDrawQuery query);

	/**
	 * 为抽奖页面查询对应的数据
	 * @param userDrawQuery
	 * @param pageable
	 * @return
	 */
	public List<UserDrawVo> queryList4Draw(UserDrawQuery userDrawQuery, Pageable pageable);
}
